import java.io.IOException;
import java.util.Scanner;

public class Homework_1_way_3 {
    public static void main(String[] args) {
        Scanner re = new Scanner(System.in);
        System.out.println("请输入第一个整数:");
        String a = re.nextLine();//读取一行
        int numa = Integer.parseInt(a);//转换成整型

        System.out.println("请输入第二个整数:");
        String b = re.nextLine();
        int numb = Integer.parseInt(b);

        System.out.println("这两个数的和为 " + (numa + numb));
    }
}
